import { http } from '@/utils/request'

export const uploadAvatarApi = (data: Object) => {
    return http.post('/adminapi/user/upload', data, {
        headers: {
            'Content-Type': 'multipart/form-data'
        }
    })
}

export const uploadNewsImgApi = (data: Object) => {
    return http.post('/adminapi/news/upload', {
        file: data
    }, {
        headers: {
            'Content-Type': 'multipart/form-data'
        }
    })
}
